package cn.jly.flink.redis;

import redis.clients.jedis.Jedis;

/**
 * jedis
 */
public class JedisApp {
    public static void main(String[] args) {
        // 如果运行报错，则在redis-cli执行：127.0.0.1:6379> config set stop-writes-on-bgsave-error no
        Jedis jedis = new Jedis("192.168.88.101");
        System.out.println(jedis.ping());
        System.out.println(String.format("result: %s", jedis.hgetAll("lanyangji")));
    }
}
